//
//  JFBGlobalSetting.h
//  ios-supplier
//
//  Created by feynmanyuan on 15/4/17.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JFBGlobalSetting : NSObject{
    NSString* rootURL;
    NSString* baseURL;
    NSString* version;
    NSString* ns;
}

@property (nonatomic, assign) BOOL isLogin;
// 店铺状态是否改变
@property (nonatomic, assign) BOOL isStoreStateChange;
@property (nonatomic, assign) NSUInteger shopId;
@property (nonatomic, strong) NSString * accessToken;
@property (nonatomic, strong) NSString * defaultAnyCode;
@property (nonatomic, strong) NSString *clientId;
@property (nonatomic, strong) NSString *clientSecret;
@property (nonatomic, strong) NSString * appName;
@property (nonatomic, strong) NSString * rootURL;
@property (nonatomic, strong) NSString * baseURL;
@property (nonatomic, strong) NSString * version;
@property (nonatomic, strong) NSString * ns;
@property (nonatomic, strong) NSString * appVersion;

+ (JFBGlobalSetting *)getSetting;
-(Boolean)logout;
- (id)getSettingInfo:(NSString*)key;
- (BOOL)updateSettingInfo:(NSString*)key value:(id)value;
-(void)initializeUserInfoWithToken:(NSString*)token;
@end
